﻿@model Enity101.Models.CreatePostViewModel
@{
    //Layout = null;
}

<h1>Add a Post</h1>

@using (Html.BeginForm()){
    <div>
        @Html.LabelFor(m => m.Title)
        @Html.EditorFor(m => m.Title)
        @Html.ValidationMessageFor(m => m.Title)
    </div>
    <div>
        @Html.LabelFor(m => m.Body)
        @Html.EditorFor(m => m.Body)
    </div>
    <div>
        <button type="submit">Add a post</button>
    </div>
    
}